/*
 * Android Runner is a multiplayer GPS game fully written by Xurxo Mendez Perez
 * 
 * Copyright (C) 2009 Xurxo Mendez Perez
 *   
 * This file is part of Android Runner.
 * 
 * Android Runner is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Android Runner is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Android Runner.  If not, see <http://www.gnu.org/licenses/>.
 */

package es.sonxurxo.gpsgame.client.model.service.to;

import java.io.Serializable;

/**
 * 
 * @author "Xurxo Mendez Perez"
 *
 */
public class Message implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3746006261093996765L;
	public static final int SYSTEM_PLAYER_GETS_ITEM_MESSAGE = 0;
	public static final int PLAYER_PERSONAL_MESSAGE = 1;
	public static final int PLAYER_BROADCAST_MESSAGE = 2;
	public static final int SYSTEM_PLAYER_ABANDONED_MESSAGE = 3;
	
	public static final String PREDEFINED_MESSAGE_1 = "Ha ha ha...";
	private String senderLogin;
	private String receiverLogin;
	private String messageBody;
	private int type;
	
	public Message() {}

	public Message(String senderLogin, String receiverLogin, String messageBody, int type) {
		super();
		this.senderLogin = senderLogin;
		this.receiverLogin = receiverLogin;
		this.messageBody = messageBody;
		this.type = type;
	}
	
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getSenderLogin() {
		return senderLogin;
	}

	public void setSenderLogin(String senderLogin) {
		this.senderLogin = senderLogin;
	}

	public String getReceiverLogin() {
		return receiverLogin;
	}

	public void setReceiverLogin(String receiverLogin) {
		this.receiverLogin = receiverLogin;
	}

	public String getMessageBody() {
		return messageBody;
	}

	public void setMessageBody(String messageBody) {
		this.messageBody = messageBody;
	}	
}
